import Layout from '@/layout'
export default {
  path: '/supplier',
  component: Layout,
  redirect: '/supplier/supplierInfo',
  name: 'supplier',
  meta: { title: '供应商管理', icon: 'gongyingshangguanli_icox', routerType: 'ERP' },
  children: [
    {
      path: 'supplierInfo',
      name: 'supplierInfo',
      component: () => import('@/views/supplier/supplierInfo'),
      meta: { title: '供应商档案', icon: '', anniu: 'supplierInfo_list' }
    },
    {
      path: 'contractManagement',
      name: 'contractManagement',
      component: () => import('@/views/supplier/contractManagement'),
      meta: { title: '合同档案', icon: '', anniu: 'contractManagement_list' }
    },
    {
      path: 'supplierAdd',
      name: 'supplierAdd',
      hidden: true,
      component: () => import('@/views/supplier/supplierAdd'),
      meta: { title: '添加供应商档案', icon: '', anniu: 'supply_add', actived: true }
    },
    {
      path: 'supplierDetail',
      name: 'supplierDetail',
      hidden: true,
      component: () => import('@/views/supplier/supplierAdd'),
      meta: { title: '供应商档案详情', icon: '', anniu: 'supply_detail' }
    },
    {
      path: 'supplierEdit',
      name: 'supplierEdit',
      hidden: true,
      component: () => import('@/views/supplier/supplierAdd'),
      meta: { title: '修改供应商档案', icon: '', anniu: 'supply_edit' }
    },
    {
      path: 'contractAdd',
      name: 'contractAdd',
      hidden: true,
      component: () => import('@/views/supplier/contractAdd'),
      meta: { title: '添加合同', icon: '', anniu: 'contract_add' }
    },
    {
      path: 'contractEdit',
      name: 'contractEdit',
      hidden: true,
      component: () => import('@/views/supplier/contractAdd'),
      meta: { title: '修改合同', icon: '', anniu: 'contract_edit' }
    },
    {
      path: 'contractDetail',
      name: 'contractDetail',
      hidden: true,
      component: () => import('@/views/supplier/contractAdd'),
      meta: { title: '合同详情', icon: '', anniu: 'contract_detail' }
    },
    {
      path: 'journalRanking',
      name: 'journalRanking',
      hidden: true,
      component: () => import('@/views/supplier/journalRanking'),
      meta: { title: '供应商流水', icon: '' }
    }]
}
